package com.max;

import com.max.downloader.DownloadTask;

public class Application {


    public static void main(String[] args) {

        if (args[0] != null && !args[0].trim().equals("")) {

            long startTime = System.currentTimeMillis();

            DownloadTask downloader = new DownloadTask();
            downloader.setFileUrl(args[0]);

            downloader.startDownload();

            long endTime = System.currentTimeMillis();
            System.out.println("total time:" + (endTime - startTime) / 1000 + "s");
        }

    }
}